import rxAjax from '@/assets/js/ajax.js';
//自定义页面栏目 api接口
export const CustomPageColumnApi = {};
CustomPageColumnApi.baseUrl = '/api-portal/portal/core/customPageColumn';

/**
 * 根据别名获取栏目
 * @param pkId
 * @returns {*}
 */
CustomPageColumnApi.getByAlias = function (alias,appId) {
    let url = CustomPageColumnApi.baseUrl + '/getByAlias?alias=' + alias;
    if(appId){
        url+="&appId="+appId
    }
    return rxAjax.get(url);
}

export default CustomPageColumnApi;
